import { Button, Form, Input, Radio, Space } from "antd";
import React from "react";

class Add extends React.Component {
  render() {
    const options = [
      {
        label: "启用",
        value: 1,
      },
      {
        label: "禁用",
        value: 0,
      },
    ];
    return (
      <div>
        <Form>
          <Form.Item label="账号">
            <Input placeholder="请输入账号" />
          </Form.Item>
          <Form.Item label="密码">
            <Input placeholder="请输入密码" />
          </Form.Item>
          <Form.Item label="核销员姓名">
            <Input placeholder="请输入核销员姓名" />
          </Form.Item>
          <Form.Item label="联系方式">
            <Input placeholder="请输入联系方式" />
          </Form.Item>
          <Form.Item label="账号状态">
            <Radio.Group options={options} />
          </Form.Item>
          <Form.Item>
            <div style={{ display: "flex", justifyContent: "flex-end" }}>
              <Space>
                <Button onClick={this.props.closeDialog}>取消</Button>
                <Button type="primary">保存</Button>
              </Space>
            </div>
          </Form.Item>
        </Form>
      </div>
    );
  }
}

export default Add;
